import { FormInstance } from 'antd/es/form/Form'

// 列表类型
export interface IResourceList {
  address: string // 资源地址
  id: number
  name: string // 资源名
  platformId: number
  publishDate: string // 发布时间
  downCount: string // 下载量
  readCount: string // 阅读量
}

export interface pageType {
  pageIndex: number // 页码
  pageSize: number // 每页数量
  totalCount?: number // 订单总数
}

export interface IResource {
  filterForm: FormInstance
  tableList: any
  titleSearch: (e: any) => void
  handleChangePage: (page: number, pageSize?: number) => void
  pageParams: pageType
  handleFileUpload: (value: any) => void
  handleUpload: (value: any) => void
  getFile: (record: IResourceList) => void
  deleteHandle: (record: IResourceList) => void
  viewHandle: (record: IResourceList) => void
  ceshidiv: any
}
